<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><%= title%></title>
    <link rel="SHORTCUT ICON" href="/img/html_head.png">
    <link rel="stylesheet" type="text/css" href="/css/home-blog.css">
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
    <!--加载meta IE兼容文件-->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <!--  页头  -->
    <%- include('../home/header.html') -%>
    <!--  banner  -->
    <div class="banner">
        <div class="cont w1000">
            <!--  <div class="title">
               <h3>欢迎来到<br />刘启旺</h3>
               <h4>博客空间</h4>
             </div> -->
            <!-- <div class="amount">
              <p><span class="text">访问量</span><span class="access">1000</span></p>
              <p><span class="text">日志</span><span class="daily-record">1000</span></p>
            </div> -->
        </div>
    </div>

    <div class="main">
        <!--内容区域-->
        <div class="content">
            <div class="cont w1000">
                <!--面包屑-->
                <div class="title">
                    <span class="layui-breadcrumb" style="visibility: visible;">
                        <a href="javascript:;" class="active">最新文章</a>
                        <span lay-separator="">|</span>
                        <a href="javascript:;">后台文章</a>
                        <span lay-separator="">|</span>
                        <a href="javascript:;">旅游杂记</a>
                        <span lay-separator="">|</span>
                        <a class="btn-small" href="/home/add-article.html">新增文章</a>
                    </span>
                </div>
                <!--文章列表-->
                <div class="list-item">
                    <% if (articleList.length > 0) { %>
                        <% articleList.forEach(item => { %>
                            <div class="item">
                                <div class="layui-fluid">
                                    <div class="layui-row">
                                        <div class="layui-col-xs12 layui-col-sm4 layui-col-md5">
                                            <div class="img">
                                                <img src="/img/sy_img1.jpg" alt="">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs12 layui-col-sm8 layui-col-md7">
                                            <div class="item-cont">
                                                <h3><%= item.title %><button class="layui-btn layui-btn-danger new-icon">new</button></h3>
                                                <h5><%= item.category_name %></h5>
                                                <p><%= item.description %></p>
                                                <a href="details.html/<%= item.id %>" class="go-icon"></a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <%})%>
                    <% } else { %>
                        <div class="page-no-data"></div>
                    <% } %>

                </div>
            </div>
        </div>

    </div>

    <!-- 页脚-->
    <%- include('../home/footer.html'); -%>

    <script type="text/javascript" src="/layui/layui.js"></script>
</body>
</html>
